<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>欢迎页面</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
{include file="public/style" /}
<script type="text/javascript" src="__PLUGIN__/kindeditor/kindeditor.js"></script>
<script type="text/javascript">
var editor;
KindEditor.ready(function (k) {
	editor = k.create('textarea[name="recharge_content"]', {
		resizeType: 1,
		allowPreviewEmoticons: false,
		allowImageUpload: true,
		allowFlashUpload: true,
		autoHeightMode: true,
		afterCreate: function () {
			this.loadPlugin('autoheight');
		}
	});
	editor = k.create('textarea[name="recharge_example"]', {
		resizeType: 1,
		allowPreviewEmoticons: false,
		allowImageUpload: true,
		allowFlashUpload: true,
		autoHeightMode: true,
		afterCreate: function () {
			this.loadPlugin('autoheight');
		}
	});
	editor = k.create('textarea[name="links"]', {
		resizeType: 1,
		allowPreviewEmoticons: false,
		allowImageUpload: true,
		allowFlashUpload: true,
		autoHeightMode: true,
		afterCreate: function () {
			this.loadPlugin('autoheight');
		}
	});
})
$(document).ready(function(){
	layui.use('form', function() {
	var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功
			//……

			//但是，如果你的HTML是动态生成的，自动渲染就会失效
			//因此你需要在相应的地方，执行下述方法来手动渲染，跟这类似的还有 element.init();
		form.render();
	});
	uploadimg('.fileQueued1','#filePicker1',"input[name='thumb']");
	uploadimg('.fileQueued2','#filePicker2',"input[name='trc20_qr']");
	uploadimg('.fileQueued3','#filePicker3',"input[name='erc20_qr']");
})
</script>
</head>
<body>
	<div class="x-nav">
		<span class="layui-breadcrumb">
			<a href="">首页</a>
			<a href="">基础管理</a>
			<a><cite>站点设置</cite></a>
		</span>
		<a class="layui-btn layui-btn-small" style="line-height: 1.6em; margin-top: 3px; float: right" onclick="location.reload()" title="刷新">
			<i class="layui-icon layui-icon-refresh" style="line-height: 30px"></i>
		</a>
	</div>
	<div class="layui-fluid">
		<div class="layui-row">
			<div class="layui-card">
				<div class="layui-card-body layui-table-body layui-table-main">
					<form class="layui-form" role="form" method="post" id="form-article-add" action="">
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>站点名称：
							</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input" id="example-text-input" name="webname" value="{$info.webname}" lay-verify="required" placeholder="请输入网站名称">
							</div>
						</div>
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>转账手续费：
							</label>
							<div class="layui-input-inline">
								<input type="text" class="layui-input" id="example-text-input" name="transfer_fee" value="{$info.transfer_fee|default=0}" lay-verify="required" placeholder="请输入数字">
							</div>
							<div class="layui-form-mid layui-word-aux">%</div>
						</div>						
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">网址LOGO：</label>
							<div class="layui-input-inline">
								<input type="hidden" name="thumb" id="thumb" value="{$info.thumb}" id="form-field-2" placeholder="" class="layui-input">
								<div id="uploader" class="wu-example">
									<div id="fileList" class="uploader-list"></div>
									<div id="filePicker1">选择图片</div>
									<div class='fileQueued1'>
										<notempty name="info.thumb"> <img src="{$info.thumb}" style="width: 150px;"></notempty>
									</div>
								</div>
							</div>
						</div>
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>TRC20地址：								
							</label>
							<div class="layui-input-block">
								<input   class="layui-input" id="example-text-input" name="trc20_key" value="{$info.trc20_key}"  placeholder="请输入钱包地址">
							</div>
						</div>	
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">TRC20二维码：</label>
							<div class="layui-input-inline">
								<input type="hidden" name="trc20_qr" id="thumb" value="{$info.trc20_qr}" id="form-field-2" placeholder="" class="layui-input">
								<div id="uploader" class="wu-example">
									<div id="fileList" class="uploader-list"></div>
									<div id="filePicker2">选择二维码</div>
									<div class='fileQueued2'>
										<notempty name="info.trc20_qr"> <img src="{$info.trc20_qr}" style="width: 150px;"></notempty>
									</div>
								</div>
							</div>
						</div>
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>ERC20地址：								
							</label>
							<div class="layui-input-block">
								<input   class="layui-input" id="example-text-input" name="erc20_key" value="{$info.erc20_key}"  placeholder="请输入钱包地址">
							</div>
						</div>	
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">ERC20二维码：</label>
							<div class="layui-input-inline">
								<input type="hidden" name="erc20_qr" id="thumb" value="{$info.erc20_qr}" id="form-field-2" placeholder="" class="layui-input">
								<div id="uploader" class="wu-example">
									<div id="fileList" class="uploader-list"></div>
									<div id="filePicker3">选择二维码</div>
									<div class='fileQueued3'>
										<notempty name="info.erc20_qr"> <img src="{$info.erc20_qr}" style="width: 150px;"></notempty>
									</div>
								</div>
							</div>
						</div>												
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>充值教程：								
							</label>
							<div class="layui-input-block">
								<textarea   class="layui-textarea" id="example-text-input" name="recharge_example"  placeholder="请输入文字">{$info.recharge_example|raw}</textarea>
							</div>
						</div>						
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>友情链接：								
							</label>
							<div class="layui-input-block">
								<textarea   class="layui-textarea" id="example-text-input" name="links"  placeholder="请输入文字">{$info.links|raw}</textarea>
							</div>
						</div>			
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">营业状态： </label>
							<div class="layui-input-block">
								<input type="radio" name="open_status" value="1" title="上班" {eq name="info.open_status" value="1" }checked="" {/eq} {empty name="info.open_status" }checked=""{/empty}>
								<input type="radio" name="open_status" value="0" title="下班" {eq name="info.open_status" value="0" }checked=""{/eq}>
							</div>
						</div>
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>营业说明文字：								
							</label>
							<div class="layui-input-block">
								<textarea   class="layui-textarea" id="example-text-input" name="open_msg" lay-verify="required" placeholder="请输入文字">{$info.open_msg}</textarea>
							</div>
						</div>
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">在线客服代码：</label>
							<div class="layui-input-block">
								<textarea   class="layui-textarea" id="example-text-input" name="kefu"  placeholder="请输入客服代码">{$info.kefu}</textarea>
							</div>
						</div>
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>SMTP服务器地址：
							</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input" id="example-text-input" name="mail_host" value="{$info.mail_host}" lay-verify="required" placeholder="">
							</div>
						</div>
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>发件邮箱地址：
							</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input" id="example-text-input" name="mail_from" value="{$info.mail_from}" lay-verify="required" placeholder="">
							</div>
						</div>											
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>邮箱账号：
							</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input" id="example-text-input" name="mail_username" value="{$info.mail_username}" lay-verify="required" placeholder="">
							</div>
						</div>						
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>邮箱密码：
							</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input" id="example-text-input" name="mail_password" value="{$info.mail_password}" lay-verify="required" placeholder="">
							</div>
						</div>						
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>发件人名称：
							</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input" id="example-text-input" name="mail_fromname" value="{$info.mail_fromname}" lay-verify="required" placeholder="">
							</div>
						</div>						
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>SSL协议：
							</label>
							<div class="layui-input-block">
								<input type="radio" class="layui-input" id="example-text-input" name="smtp_secure" value="SSL" title="SSL" {eq name="info.smtp_secure" value="SSL"}checked="checked"{/eq}>
								<input type="radio" class="layui-input" id="example-text-input" name="smtp_secure" value="TLS" title="TLS" {eq name="info.smtp_secure" value="TLS"}checked="checked"{/eq}>
							</div>
						</div>						
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>SSL端口：
							</label>
							<div class="layui-input-block">
								<input type="radio" class="layui-input" id="example-text-input" name="smtp_port" value="25" title="25" {eq name="info.smtp_port" value="25"}checked="checked"{/eq}>
								<input type="radio" class="layui-input" id="example-text-input" name="smtp_port" value="465" title="465" {eq name="info.smtp_port" value="465"}checked="checked"{/eq}>
								<input type="radio" class="layui-input" id="example-text-input" name="smtp_port" value="587" title="587" {eq name="info.smtp_port" value="587"}checked="checked"{/eq}>
							</div>
						</div>

						<div class="layui-form-item">
							<label for="username" class="layui-form-label">状态： </label>
							<div class="layui-input-block">
								<input type="radio" name="status" value="1" title="开启" {eq name="info.status" value="1" }checked=""{/eq} {empty name="info.status"}checked=""{/empty}>
								<input type="radio" name="status" value="0" title="关闭" {eq name="info.status" value="0" }checked=""{/eq}>
							</div>
						</div>

						<div class="layui-form-item">
							<label for="order_notice_status" class="layui-form-label">订单提醒开关： </label>
							<div class="layui-input-block">
								<input type="radio" name="order_notice_status" value="1" title="开启" {eq name="info.order_notice_status" value="1" }checked=""{/eq} {empty name="info.order_notice_status"}checked=""{/empty}>
								<input type="radio" name="order_notice_status" value="0" title="关闭" {eq name="info.order_notice_status" value="0" }checked=""{/eq}>
							</div>
						</div>

						<div class="layui-form-item">
							<label for="order_notice_times" class="layui-form-label">
								<span class="x-red">*</span>提醒次数：
							</label>
							<div class="layui-input-block">
								<input type="number" class="layui-input" id="order_notice_times" name="order_notice_times" value="{$info.order_notice_times}"  placeholder="总共提醒多少次">
							</div>
						</div>

						<div class="layui-form-item">
							<label for="order_notice_interval" class="layui-form-label">
								<span class="x-red">*</span>提醒间隔(秒)：
							</label>
							<div class="layui-input-block">
								<input type="number" class="layui-input" id="order_notice_interval" name="order_notice_interval" value="{$info.order_notice_interval}"  placeholder="间隔多少秒提醒一次">
							</div>
						</div>

						<div class="layui-form-item">
							<label for="order_notice_interval" class="layui-form-label">
								<span class="x-red">*</span>ajax轮询间隔(秒)：
							</label>
							<div class="layui-input-block">
								<input type="number" class="layui-input" id="ajax_interval" name="ajax_interval" value="{$info.ajax_interval}"  placeholder="间隔多少秒查询一次">
							</div>
						</div>


						<div class="layui-form-item">
							<label for="L_repass" class="layui-form-label"> </label>
							<button class="layui-btn" lay-filter="add" lay-submit="">保 存</button>
						</div>
					</form>
				</div>
			</div>
		</div>
		<include file="Public/footer" />
	</div>
</body>
</html>